VT-d/RMRR: Avoid memory corruption in add_user_rmrr()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 30 Jan 2017 10:09:06 +0000 (10:09 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 30 Jan 2017 11:07:48 +0000 (11:07 +0000)
commit7a4cf23e2653e8abf4793820487df32b094de56a
treeb24c47fa3d4b95073b2421c4406153d08f8ddfb3
parent7581a378b0b8727b6eaaa83da154e40bcfea0f69
VT-d/RMRR: Avoid memory corruption in add_user_rmrr()

register_one_rmrr() already frees its parameter if errors are encountered.

Introduced by c/s 431685e8de and spotted by Coverity.

Coverity-ID: 1399607
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/vtd/dmar.c